package org.example.common;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class WGException extends ServiceException{

    private static final long serialVersionUID = 5449080089939502037L;
    public WGException(String code) {
        super(code);
    }

    public WGException(String code, String message) {
        super(code, message);
    }

    public WGException(ErrorEnum errorEnum) {
        super(errorEnum);
    }

    public WGException(WGErrorEnum errorEnum) {
        super(errorEnum.getCode(), errorEnum.getMsg());
    }
}
